package com.ruoyi.web.tdmdata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.tdmdata.mapper.TdmZhiLiaoYaoWuMapper;
import com.ruoyi.web.tdmdata.domain.TdmZhiLiaoYaoWu;
import com.ruoyi.web.tdmdata.service.ITdmZhiLiaoYaoWuService;

/**
 * id-11  -23  治疗药物检测Service业务层处理
 * 
 * @author ly
 * @date 2022-03-14
 */
@Service
public class TdmZhiLiaoYaoWuServiceImpl implements ITdmZhiLiaoYaoWuService 
{
    @Autowired
    private TdmZhiLiaoYaoWuMapper tdmZhiLiaoYaoWuMapper;

    /**
     * 查询id-11  -23  治疗药物检测
     * 
     * @param id id-11  -23  治疗药物检测主键
     * @return id-11  -23  治疗药物检测
     */
    @Override
    public TdmZhiLiaoYaoWu selectTdmZhiLiaoYaoWuById(Long id)
    {
        return tdmZhiLiaoYaoWuMapper.selectTdmZhiLiaoYaoWuById(id);
    }

    /**
     * 查询id-11  -23  治疗药物检测列表
     * 
     * @param tdmZhiLiaoYaoWu id-11  -23  治疗药物检测
     * @return id-11  -23  治疗药物检测
     */
    @Override
    public List<TdmZhiLiaoYaoWu> selectTdmZhiLiaoYaoWuList(TdmZhiLiaoYaoWu tdmZhiLiaoYaoWu)
    {
        return tdmZhiLiaoYaoWuMapper.selectTdmZhiLiaoYaoWuList(tdmZhiLiaoYaoWu);
    }

    /**
     * 新增id-11  -23  治疗药物检测
     * 
     * @param tdmZhiLiaoYaoWu id-11  -23  治疗药物检测
     * @return 结果
     */
    @Override
    public int insertTdmZhiLiaoYaoWu(TdmZhiLiaoYaoWu tdmZhiLiaoYaoWu)
    {
        return tdmZhiLiaoYaoWuMapper.insertTdmZhiLiaoYaoWu(tdmZhiLiaoYaoWu);
    }

    /**
     * 修改id-11  -23  治疗药物检测
     * 
     * @param tdmZhiLiaoYaoWu id-11  -23  治疗药物检测
     * @return 结果
     */
    @Override
    public int updateTdmZhiLiaoYaoWu(TdmZhiLiaoYaoWu tdmZhiLiaoYaoWu)
    {
        return tdmZhiLiaoYaoWuMapper.updateTdmZhiLiaoYaoWu(tdmZhiLiaoYaoWu);
    }

    /**
     * 批量删除id-11  -23  治疗药物检测
     * 
     * @param ids 需要删除的id-11  -23  治疗药物检测主键
     * @return 结果
     */
    @Override
    public int deleteTdmZhiLiaoYaoWuByIds(Long[] ids)
    {
        return tdmZhiLiaoYaoWuMapper.deleteTdmZhiLiaoYaoWuByIds(ids);
    }

    /**
     * 删除id-11  -23  治疗药物检测信息
     * 
     * @param id id-11  -23  治疗药物检测主键
     * @return 结果
     */
    @Override
    public int deleteTdmZhiLiaoYaoWuById(Long id)
    {
        return tdmZhiLiaoYaoWuMapper.deleteTdmZhiLiaoYaoWuById(id);
    }
}
